define([],function(){
	return {
		randomInt : function(){
			
		},
		randomColor : function(){
			console.log("产生随机颜色");
		}
	}
})
function getCookie(key) {
			var kvlist = document.cookie.split("; ");
			var kv = kvlist.find(function(item) {
				return item.split("=")[0] == key;
			});

			if (kv) {
				return kv.split("=")[1];
			}
		}

		function getNDaysAfter(n) {
			var now = new Date();
			now.setDate(now.getDate() + n);
			return now;
		}

		function setCookie(key, val, days) {
			document.cookie = key + "=" + val + "; expires=" + getNDaysAfter(days) + "; path= /"
		}